---
layout: m1x_soap
title: Attribute Set Group Rename
---

<h3><a name="product_attribute_set.groupRename-Module%3AProductAttributeSetAPI"></a>Module: Product Attribute Set API</h3>

<h4><a name="product_attribute_set.groupRename-Resource%3Aproductattributeset"></a>Resource: product_attribute_set</h4>


<h5><a name="product_attribute_set.groupRename-Method%3A"></a>Method:</h5>

<ul>
	<li>product_attribute_set.groupRename (SOAP V1)</li>
	<li>catalogProductAttributeSetGroupRename (SOAP V2)</li>
</ul>


<p>Allows you to rename a group in the attribute set.</p>

<p><b>Arguments:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId <br class="atl-forced-newline" /> </td>
<td> Session ID </td>
</tr>
<tr>
<td> string <br class="atl-forced-newline" /> </td>
<td> groupId </td>
<td> ID of the group that will be renamed </td>
</tr>
<tr>
<td> string </td>
<td> groupName </td>
<td> New name for the group </td>
</tr>
</tbody></table>


<p><b>Return:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Description </th>
</tr>
<tr>
<td> boolean\int </td>
<td> True (1) if the group is renamed </td>
</tr>
</tbody></table>


<p><b>Faults:</b></p>


<table><tbody>
<tr>
<th> Fault Code </th>
<th> Fault Message </th>
</tr>
<tr>
<td> 108 </td>
<td> Attribute group with requested id does not exist. </td>
</tr>
<tr>
<td> 114 </td>
<td> Error while renaming group. Details in error message. </td>
</tr>
</tbody></table>


<h4><a name="product_attribute_set.groupRename-Examples"></a>Examples</h4>

<h5><a name="product_attribute_set.groupRename-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');

$groupId = 100;
$groupName = "New Group";

echo "Renaming group...";
$result = $proxy-&gt;call(
    $sessionId,
    "product_attribute_set.groupRename",
    array(
         $groupId,
         $groupName
    )
);</pre>
		</div>
</div></div>

<h5><a name="product_attribute_set.groupRename-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy-&gt;login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy-&gt;catalogProductAttributeSetGroupRename($sessionId, '100', 'New Group');
var_dump($result);</pre>
		</div>
</div></div>


<h5><a name="product_attribute_set.groupRename-RequestExampleSOAPV2%28WSIComplianceMode%29"></a>Request Example SOAP V2 (WS-I Compliance Mode)</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl');

$sessionId = $proxy-&gt;login((object)array('username' =&gt; 'apiUser', 'apiKey' =&gt; 'apiKey'));

$result = $proxy-&gt;catalogProductAttributeSetGroupRename((object)array('sessionId' =&gt; $sessionId-&gt;result, 'groupId' =&gt; '100', 'groupName' =&gt; 'New Group'));
var_dump($result-&gt;result);</pre>
		</div>
</div></div>

<?php include(__ROOT__ . 'footer.php'); ?>
